package com.xdf.docmanagementsystem.controller;

import org.apache.shiro.authz.annotation.RequiresUser;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @program: doc-management-system
 * @description: Html
 * @author: Zhang
 * @create: 2020-06-24 22:36
 **/
@Controller
public class HtmlController {

    /**
     * 登录
     *
     * @return
     */
    @RequestMapping("/login")
    public String login() {
        return "login";
    }

    /**
     * 主页
     *
     * @return
     */
    @RequestMapping("/index")
    @RequiresUser
    public String index(HttpServletRequest request, HttpServletResponse response) {
        return "index";
    }
}
